package com.pajx.facelibrary.utils;

public class StreamUtil {

    public StreamUtil() {
    }

    public static int checkNirRgb(byte[] data, int width, int height) {
        if (width != 0 && height != 0) {
            return width * height * 3 / 2 != data.length ? -1 : nativeCheckNirRgb(data, width, height);
        } else {
            return -1;
        }
    }

    private static native int nativeCheckNirRgb(byte[] var0, int var1, int var2);
}
